﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Models;

namespace IDAL
{
    public interface INewsCategoryInfo
    {
        List<NewsCategoryInfo> GetAllNewsCategoryInfo();
        NewsCategoryInfo GetOneNewsCategoryInfo(int NewsID);
        int AddNewsCategoryInfo(NewsCategoryInfo newsCategoryInfo);
        int UpdateNewsCategoryInfo(NewsCategoryInfo newscategory);
        int DeleteNewsCategoryInfo(int CategoryID);
        /// <summary>
        /// 设置分类是否有新闻
        /// </summary>
        /// <param name="CategoryID"></param>
        /// <param name="flag">只能是0/1</param>
        /// <returns></returns>
        int UpdateCategoryHasNews(int CategoryID, int flag);
        List<NewsCategoryInfo> GetAdminNewsCategoryInfo();
    }
}
